package com.wendy.common.core.constant;

public interface RegexConstant {

    public static final String ID_CARD_REGEX=
            "^(^[1‐9]\\d{7}((0\\d)|(1[0‐2]))(([0|1|2]\\d)|3[0‐1])\\d{3}$)|(^[1‐9]\\d{5}[1‐9]\\d{3}((0\\d)|(1[0‐2]))(([0|1|2]\\d)|3[0‐1])((\\d{4})|\\d{3}[Xx])$)$";

    public static final String PHONE_REGEX="^1[3-9]\\d{9}$";

    public static final String EMAIL_REGEX="^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";

    public static final String NUMBER_REGEX="^[0-9]*$";

    public static final String PASSWORD_REGEX="^[a-zA-Z0-9]{6,20}$";

    public static final String USERNAME_REGEX="^[a-zA-Z0-9]{6,20}$";

    public static final String NAME_REGEX="^[\\u4e00-\\u9fa5]{2,20}$";

    public static final String CHINESE_REGEX="^[\\u4e00-\\u9fa5]{2,20}$";

    public static final String NUMBER_AND_CHINESE_REGEX="^[\\u4e00-\\u9fa5\\d]{2,20}$";

    public static final String NUMBER_AND_CHINESE_AND_ENGLISH_REGEX="^[\\u4e00-\\u9fa5\\d\\w]{2,20}$";

    public static final String NUMBER_AND_CHINESE_AND_ENGLISH_AND_SYMBOL_REGEX="^[\\u4e00-\\u9fa5\\d\\w\\W]{2,20}$";

}
